package com.px.chapter_Dec_1.textt.FangX;

import java.util.Arrays;
import java.util.List;
import java.util.function.BinaryOperator;
import java.util.function.Function;
import java.util.stream.Collectors;

public class FaXi {
    public static void main(String[] args) {
        BinaryOperator<Integer> add=(a,b)->a+b;


        //   EcmDef1 d= new EcmDef1((int a,int c)) {


        };

        /*
        List<String> names= Arrays.asList("Mauk","fd","jacak","luce","Inata");
        List<Integer> nameLengths=names.stream().map(new Function<String, Integer>() {
            @Override
            public Integer apply(String s) {
                return s.length();
            }
        }).collect(Collectors.toList());
       nameLengths=names.stream().map(a->a.length()).collect(Collectors.toList());
        System.out.println("nameLengths=="+nameLengths);*/
    }
//}



